package cn.jingyuan.fox.support.thread.handler;

import java.util.logging.Level;
import java.util.logging.Logger;

public class SimpleUncaughtExceptionHandler implements Thread.UncaughtExceptionHandler {

    protected Logger log = Logger.getLogger(this.getClass().getName());

    @Override
    public void uncaughtException(Thread t, Throwable e) {
        log.log(Level.WARNING, "uncaught exception in thread. name=" + t.getName(), e);
    }

}
